<include file="Public:header" />
<!--房源列表-->
<div class="pad_lr_10" >
    <!-- 查询 -->
        <form name="searchform"  method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                <div class="explain_col">
                    <input type="hidden" name="m" value="Admin" />
                    <input type="hidden" name="c" value="Used" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="{$menuid}" />
                    {:L('publish_time')}：
                    <input type="text" name="time_start" id="time_start" onclick="myCalendar();" readonly class="date" size="12" value="{$search.time_start}">
                    -
                    <input type="text" name="time_end" id="time_end" onclick="myCalendar();" readonly class="date" size="12" value="{$search.time_end}">
                    所属区域：
                    <select class="J_cate_select mr10" data-pid="0" data-menuid="1" data-uri="{:U('AreaCate/ajax_getchilds')}" data-selected="{$search.selected_ids}"></select>
                    <input type="hidden" name="area_id" id="J_cate_id" value="{$search.area_id}" />
                    &nbsp;&nbsp;{:L('status')}:
                    <select name="status">
                    <option value="">-{:L('all')}-</option>
                    <option value="1" <if condition="$search.status eq '1'">selected="selected"</if>>已审核</option>
                    <option value="0" <if condition="$search.status eq '0'">selected="selected"</if>>未审核</option>
                    </select>
                    &nbsp;&nbsp;{:L('keyword')} :
                    <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                    <input type="submit" name="search" class="btn" value="{:L('search')}" />
                </div>
                </td>
            </tr>
            </tbody>
        </table>
        </form>
    <!-- 查询结束 -->
    <div class="J_tablelist table_list" data-acturi="{:U('Used/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left" width=250><span data-tdtype="order_by" data-field="title">房源名称</span></th>
                <th width=200><span data-tdtype="order_by" data-field="estate_id">所属小区</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="title">房源字典</span></th>
                <th width=120><span data-tdtype="order_by" data-field="total_price">总价</span></th>
                <th width=120><span data-tdtype="order_by" data-field="add_time">发布时间</span></th>
                <th align="80"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th width="80"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                <th width="200">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="{$val.id}" class="tdedit" style="color:{$val.colors};">{$val.title}</span><notempty name="val['img']"><span class="attachment_icon J_attachment_icon" file-type="image" file-rel="{$val.img}"><img src="__IMG__/filetype/image_s.gif" /></span></notempty></td>
                <td align="center"><b>{$val.estate}</b></td>
                <td align="left"><b>{$val.build}栋{$val.fool}层{$val.room}房</b></td>
                <td align="center"><b>{$val.total_price}万元</b></td>
                <td align="center">{$val.add_time|date='Y-m-d H:i:s',###}</td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
                <td align="center">{$status[$val['status']]}</td>
                <td align="center">
                    {:Z($options,$val['id'],$val['title'],$menuid)} | <a href="javascript:void(0);" onclick="examine({$val.id})">审核</a>
                </td>
            </tr>
            </volist>
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('Used/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>
    </div>
</div>
<div class="pop" style="display:none">
    <div class="popMain">
        <div class="popTop"></div>
        <div class="popMiddle">
            <p>是否确认通过？</p>
        </div>
        <div class="popBottom">
            <span class="confirm">确认</span>
            <span class="cancel">取消</span>
        </div>
    </div>
</div>
<include file="Public:footer" />
<js file="__STATIC__/js/calendar/WdatePicker.js" charset="utf-8" />
<script>
    $(function(){
        (function(){
            $(".popBottom").live('click', 'span', function(event) {
                event.preventDefault();
                if($(this).hasClass('confirm')){
                    $(".demo1 ul li").eq(num).remove();
                    num = "";
                    $(".pop").fadeOut();
                }else{
                    $(".pop").fadeOut();
                    num = "";
                }
            });
        })();
    })
    $('.J_cate_select').cate_select({top_option:lang.all});
    function examine (used_id){
        var num;
        event.preventDefault();
        num = $(this).index();
        $(".pop").fadeIn('fast');
    }
</script>
</body>
</html>
